<%= javascript_include_tag :defaults %>
<%= stylesheet_link_tag "mrs" %>

<%= render :partial => 'layouts/user_bar'  %>

<%= @content_for_layout %>


<% flash.each do |key, msg| %>
  <%= content_tag :div, msg, :class => "flash", :id => key %>
  <% content_tag :script, :type => "text/javascript" do %>
    $('<%= key %>').style.display = 'none';
    new Effect.Appear('<%= key %>', {duration: 3});
  <% end %>

  <% content_tag :script, :type => "text/javascript" do %>
    setTimeout("new Effect.Fade('<%= key %>');", 10000);
  <% end %>
<% end %>

